﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StructInfo : MonoBehaviour
{
    static public bool isInit;

    static public int people = -1;  //人口数

    static public int construction = -1;    //建设值

    public StructInformation structInfo;

    private void Start()
    {
       if(!isInit)
        {
            people = 0;
            construction = 0;
        }
    }

    public void OnStatusChanged()
    {
        switch (structInfo)
        {
            case StructInformation.Land:
                //数值
                break;
            case StructInformation.School:
                //
                break;
            case StructInformation.WorkShop:
                //
                break;
            default:
                Debug.LogError("No Status!");
                break;
        }
    }

}
